#!/usr/bin/python
# -*- coding: UTF-8 -*-
# author : bird.zhang@ximalaya.com

# curl 'http://poro.pw/user/checkin'
# -X POST
# -H 'Pragma: no-cache'
# -H 'Origin: http://poro.pw'
# -H 'Accept-Encoding: gzip, deflate'
# -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7'
# -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Mobile Safari/537.36'
# -H 'Accept: application/json, text/javascript, */*; q=0.01'
# -H 'Cache-Control: no-cache'
# -H 'X-Requested-With: XMLHttpRequest'
# -H 'Cookie: __cfduid=d215b014bb907480a1063e5b11ab2fb6e1526263955; __lnkrntdmcvrd=-1; uid=122238; email=13627243520%40163.com; key=1f5d53323811702fe84c60199d71b6f5668a8b92ece7b'
# -H 'Connection: keep-alive'
# -H 'Referer: http://poro.pw/user'
# -H 'Content-Length: 0'
# --compressed

import requests

# http://poro.ws/user/checkin

url = "http://poro.ws/user/checkin"

cookies = '__cfduid=d215b014bb907480a1063e5b11ab2fb6e1526263955; ' \
          '__lnkrntdmcvrd=-1; ' \
          'uid=97742; ' \
          'email=476100281%40qq.com; ' \
          'key=62e5b4160767e47513c47883923f7b3227dbe2012ad54'

headers = {
    "Cookie": cookies
}

response = requests.post(url, headers=headers)
print(response.text)

cookies = '__cfduid=d215b014bb907480a1063e5b11ab2fb6e1526263955; ' \
          '__lnkrntdmcvrd=-1; ' \
          'uid=122238; ' \
          'email=13627243520%40163.com; ' \
          'key=1f5d53323811702fe84c60199d71b6f5668a8b92ece7b'

headers = {
    "Cookie": cookies
}

response = requests.post(url, headers=headers)
print(response.text)
